#Boa:Dialog:Dialog1

import wx

def create(parent):
    return Dialog1(parent)

[wxID_DIALOG1, wxID_DIALOG1NO, wxID_DIALOG1SI, wxID_DIALOG1STATICBITMAP1, 
 wxID_DIALOG1STATICTEXT1, 
] = [wx.NewId() for _init_ctrls in range(5)]

class Dialog1(wx.Dialog):
    def _init_ctrls(self, prnt):
        # generated method, don't edit
        wx.Dialog.__init__(self, id=wxID_DIALOG1, name='', parent=prnt,
              pos=wx.Point(587, 401), size=wx.Size(322, 141), style=0,
              title='Desea Salir?')
        self.SetClientSize(wx.Size(306, 105))

        self.si = wx.Button(id=wxID_DIALOG1SI, label='SI', name='si',
              parent=self, pos=wx.Point(216, 72), size=wx.Size(75, 23),
              style=0)
        self.si.Bind(wx.EVT_BUTTON, self.OnSiButton, id=wxID_DIALOG1SI)

        self.no = wx.Button(id=wxID_DIALOG1NO, label='NO', name='no',
              parent=self, pos=wx.Point(16, 72), size=wx.Size(75, 23), style=0)
        self.no.Bind(wx.EVT_BUTTON, self.OnNoButton, id=wxID_DIALOG1NO)

        self.staticBitmap1 = wx.StaticBitmap(bitmap=wx.Bitmap(u'C:/ERP sussan/imgs/iconos/Warningsmall.png',
              wx.BITMAP_TYPE_PNG), id=wxID_DIALOG1STATICBITMAP1,
              name='staticBitmap1', parent=self, pos=wx.Point(8, 8),
              size=wx.Size(32, 28), style=0)

        self.staticText1 = wx.StaticText(id=wxID_DIALOG1STATICTEXT1,
              label='Se encontraron CAMBIOS en\n la transferencia que estaba trabajando. \nDesea SALIR DE TODAS MANERAS?',
              name='staticText1', parent=self, pos=wx.Point(48, 8),
              size=wx.Size(250, 42), style=0)
        self.staticText1.SetFont(wx.Font(9, wx.SWISS, wx.NORMAL, wx.BOLD, False,
              'Tahoma'))

    def __init__(self, parent):
        self._init_ctrls(parent)
        self.padre = parent

    def OnSiButton(self, event):
        self.padre.sale = 1
        self.Close()
        

    def OnNoButton(self, event):
        self.Close()
